﻿@{double averageRating = ViewBag.averageRating;}
@{int productID = ViewBag.productID;}

<div id="avgRating">
@if (averageRating > 0)
{
        <p id="rating+@productID">@averageRating / 5</p>
}
else
{
    <p>No rating available!</p>
}
</div>